<?php

namespace App\Validators;

class MbStrLenValidator
{
    const MESSAGE = '字符串长度只能在10~1000之间';

    public function validate($attribute, $value, $parameters, $validator): bool
    {
        $len = mb_strlen($value);

        return $len >= 10 && $len <= 1000;
    }
}
